﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200027F RID: 639
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRoguePickAvatarScRsp : IMessage<ChessRoguePickAvatarScRsp>, IMessage, IEquatable<ChessRoguePickAvatarScRsp>, IDeepCloneable<ChessRoguePickAvatarScRsp>, IBufferMessage
	{
		// Token: 0x1700085A RID: 2138
		// (get) Token: 0x06001CA8 RID: 7336 RVA: 0x00051F2B File Offset: 0x0005012B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRoguePickAvatarScRsp> Parser
		{
			get
			{
				return ChessRoguePickAvatarScRsp._parser;
			}
		}

		// Token: 0x1700085B RID: 2139
		// (get) Token: 0x06001CA9 RID: 7337 RVA: 0x00051F32 File Offset: 0x00050132
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRoguePickAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700085C RID: 2140
		// (get) Token: 0x06001CAA RID: 7338 RVA: 0x00051F44 File Offset: 0x00050144
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRoguePickAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x06001CAB RID: 7339 RVA: 0x00051F4B File Offset: 0x0005014B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRoguePickAvatarScRsp()
		{
		}

		// Token: 0x06001CAC RID: 7340 RVA: 0x00051F60 File Offset: 0x00050160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRoguePickAvatarScRsp(ChessRoguePickAvatarScRsp other) : this()
		{
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.rogueLineupInfo_ = ((other.rogueLineupInfo_ != null) ? other.rogueLineupInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001CAD RID: 7341 RVA: 0x00051FBD File Offset: 0x000501BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRoguePickAvatarScRsp Clone()
		{
			return new ChessRoguePickAvatarScRsp(this);
		}

		// Token: 0x1700085D RID: 2141
		// (get) Token: 0x06001CAE RID: 7342 RVA: 0x00051FC5 File Offset: 0x000501C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x1700085E RID: 2142
		// (get) Token: 0x06001CAF RID: 7343 RVA: 0x00051FCD File Offset: 0x000501CD
		// (set) Token: 0x06001CB0 RID: 7344 RVA: 0x00051FD5 File Offset: 0x000501D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLineupInfo RogueLineupInfo
		{
			get
			{
				return this.rogueLineupInfo_;
			}
			set
			{
				this.rogueLineupInfo_ = value;
			}
		}

		// Token: 0x1700085F RID: 2143
		// (get) Token: 0x06001CB1 RID: 7345 RVA: 0x00051FDE File Offset: 0x000501DE
		// (set) Token: 0x06001CB2 RID: 7346 RVA: 0x00051FE6 File Offset: 0x000501E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06001CB3 RID: 7347 RVA: 0x00051FEF File Offset: 0x000501EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRoguePickAvatarScRsp);
		}

		// Token: 0x06001CB4 RID: 7348 RVA: 0x00052000 File Offset: 0x00050200
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRoguePickAvatarScRsp other)
		{
			return other != null && (other == this || (this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && object.Equals(this.RogueLineupInfo, other.RogueLineupInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001CB5 RID: 7349 RVA: 0x00052064 File Offset: 0x00050264
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.rogueLineupInfo_ != null)
			{
				num ^= this.RogueLineupInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001CB6 RID: 7350 RVA: 0x000520C7 File Offset: 0x000502C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001CB7 RID: 7351 RVA: 0x000520CF File Offset: 0x000502CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001CB8 RID: 7352 RVA: 0x000520D8 File Offset: 0x000502D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			this.baseAvatarIdList_.WriteTo(ref output, ChessRoguePickAvatarScRsp._repeated_baseAvatarIdList_codec);
			if (this.rogueLineupInfo_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.RogueLineupInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001CB9 RID: 7353 RVA: 0x00052144 File Offset: 0x00050344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.baseAvatarIdList_.CalculateSize(ChessRoguePickAvatarScRsp._repeated_baseAvatarIdList_codec);
			if (this.rogueLineupInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueLineupInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001CBA RID: 7354 RVA: 0x000521B0 File Offset: 0x000503B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRoguePickAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.rogueLineupInfo_ != null)
			{
				if (this.rogueLineupInfo_ == null)
				{
					this.RogueLineupInfo = new ChessRogueLineupInfo();
				}
				this.RogueLineupInfo.MergeFrom(other.RogueLineupInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001CBB RID: 7355 RVA: 0x00052229 File Offset: 0x00050429
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001CBC RID: 7356 RVA: 0x00052234 File Offset: 0x00050434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 96U)
				{
					if (num == 64U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						goto IL_3F;
					}
				}
				else
				{
					if (num == 98U)
					{
						goto IL_3F;
					}
					if (num == 106U)
					{
						if (this.rogueLineupInfo_ == null)
						{
							this.RogueLineupInfo = new ChessRogueLineupInfo();
						}
						input.ReadMessage(this.RogueLineupInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_3F:
				this.baseAvatarIdList_.AddEntriesFrom(ref input, ChessRoguePickAvatarScRsp._repeated_baseAvatarIdList_codec);
			}
		}

		// Token: 0x04000BE1 RID: 3041
		private static readonly MessageParser<ChessRoguePickAvatarScRsp> _parser = new MessageParser<ChessRoguePickAvatarScRsp>(() => new ChessRoguePickAvatarScRsp());

		// Token: 0x04000BE2 RID: 3042
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000BE3 RID: 3043
		public const int BaseAvatarIdListFieldNumber = 12;

		// Token: 0x04000BE4 RID: 3044
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(98U);

		// Token: 0x04000BE5 RID: 3045
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04000BE6 RID: 3046
		public const int RogueLineupInfoFieldNumber = 13;

		// Token: 0x04000BE7 RID: 3047
		private ChessRogueLineupInfo rogueLineupInfo_;

		// Token: 0x04000BE8 RID: 3048
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04000BE9 RID: 3049
		private uint retcode_;
	}
}
